package com.spzx.product.vo;

import java.util.ArrayList;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author GAX
 * @date 2025-08-31
 */

@Schema(description = "商品分类 vo")
@Data
public class CategoryVo {
    @Schema(description = "分类id")
    private Long id;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "图标地址")
    private String imageUrl;

    @Schema(description = "上级分类id")
    private Long parentId;

    // 添加属性，表示是否有子类别
    @Schema(description = "子类别")
    private List<CategoryVo> children = new ArrayList<>();
}
